using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Features
{
    /// <summary>
    /// <para>Copy Features</para>
    /// <para>Copies features from the input feature class or layer to a new feature class.</para>
    /// <para>将要素从输入要素类或图层复制到新要素类。</para>
    /// </summary>    
    [DisplayName("Copy Features")]
    public class CopyFeatures : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CopyFeatures()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_features">
        /// <para>Input Features</para>
        /// <para>The features to be copied.</para>
        /// <para>要复制的特征。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The feature class which will be created and to which the features will be copied.</para>
        /// <para>将要创建的要素类以及要素将复制到该要素的要素类。</para>
        /// </param>
        public CopyFeatures(object _in_features, object _out_feature_class)
        {
            this._in_features = _in_features;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Copy Features";

        public override string CallName => "management.CopyFeatures";

        public override List<string> AcceptEnvironments => ["MDomain", "MResolution", "MTolerance", "XYDomain", "XYResolution", "XYTolerance", "ZDomain", "ZResolution", "ZTolerance", "autoCommit", "configKeyword", "extent", "geographicTransformations", "maintainAttachments", "outputCoordinateSystem", "outputMFlag", "outputZFlag", "outputZValue", "qualifiedFieldNames", "scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_features, _out_feature_class, _config_keyword, _spatial_grid_1, _spatial_grid_2, _spatial_grid_3];

        /// <summary>
        /// <para>Input Features</para>
        /// <para>The features to be copied.</para>
        /// <para>要复制的特征。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_features { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The feature class which will be created and to which the features will be copied.</para>
        /// <para>将要创建的要素类以及要素将复制到该要素的要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Configuration Keyword</para>
        /// <para>Geodatabase configuration keyword to be applied if the output is a geodatabase.</para>
        /// <para>如果输出是地理数据库，则要应用的地理数据库配置关键字。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Configuration Keyword")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _config_keyword { get; set; } = null;


        /// <summary>
        /// <para>Output Spatial Grid 1</para>
        /// <para>This parameter has been deprecated in ArcGIS Pro. Any value you enter is ignored.</para>
        /// <para>此参数在 ArcGIS Pro 中已弃用。您输入的任何值都将被忽略。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Spatial Grid 1")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double? _spatial_grid_1 { get; set; } = null;


        /// <summary>
        /// <para>Output Spatial Grid 2</para>
        /// <para>This parameter has been deprecated in ArcGIS Pro. Any value you enter is ignored.</para>
        /// <para>此参数在 ArcGIS Pro 中已弃用。您输入的任何值都将被忽略。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Spatial Grid 2")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double? _spatial_grid_2 { get; set; } = null;


        /// <summary>
        /// <para>Output Spatial Grid 3</para>
        /// <para>This parameter has been deprecated in ArcGIS Pro. Any value you enter is ignored.</para>
        /// <para>此参数在 ArcGIS Pro 中已弃用。您输入的任何值都将被忽略。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Spatial Grid 3")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double? _spatial_grid_3 { get; set; } = null;


        public CopyFeatures SetEnv(object MDomain = null, object MResolution = null, object MTolerance = null, object XYDomain = null, object XYResolution = null, object XYTolerance = null, object ZDomain = null, object ZResolution = null, object ZTolerance = null, int? autoCommit = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object outputMFlag = null, object outputZFlag = null, object outputZValue = null, bool? qualifiedFieldNames = null, object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(MDomain: MDomain, MResolution: MResolution, MTolerance: MTolerance, XYDomain: XYDomain, XYResolution: XYResolution, XYTolerance: XYTolerance, ZDomain: ZDomain, ZResolution: ZResolution, ZTolerance: ZTolerance, autoCommit: autoCommit, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, outputMFlag: outputMFlag, outputZFlag: outputZFlag, outputZValue: outputZValue, qualifiedFieldNames: qualifiedFieldNames, scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}